<template>
  <view class="definite">
    <u-navbar :is-back="true" :custom-back="BackM" title="待发货" back-text="">
    </u-navbar>
    <view class="top">
      <u-icon name="map" color="#02CB86" class="map" size="50"></u-icon>
      <view class="item">
        <span>收货人：</span>
        <span class="name">小小小</span>
        <span class="tele">14525485956</span>
      </view>
      <view class="address">
        <span>收货地址：</span>
        <span>山西省运城市盐湖区南风广场小商品 南风天地</span>
      </view>
      <image class="top-image" src="../../../style/image/my/A15.png" alt="" />
    </view>
    <view class="item-content">
      <view class="image">
        <image src="../../../style/image/my/A33.jpg" alt="" />
      </view>
      <view class="description">
        红色限量版套装礼盒红色限量版套装礼盒红色限量版套装礼盒
      </view>
      <view class="type">礼盒装</view>
      <view>
        <span class="money">¥ 128.00</span>
        <span class="num">×1</span>
      </view>
    </view>
    <view class="item-one">
      <span>优惠券</span>
      <span class="null">暂无可用优惠券</span>
      <image class="image-one" src="../../../style/image/my/A15.png" alt="" />
    </view>
    <view class="item-one">
      <span>配送方式</span>
      <span class="have">普通快递</span>
      <image class="image-one" src="../../../style/image/my/A15.png" alt="" />
    </view>
    <view class="item-one">
      <span>运费</span>
      <span style="float: right">￥10</span>
    </view>
    <view class="item-two">
      <view class="total">
        <span style="padding-right: 0.7rem">共1件商品</span>
        <span>小计：</span>
        <span style="color: #ff0000; font-size: 0.8rem">￥128.00</span>
      </view>
    </view>
    <view class="item-one">选择支付方式</view>

    <view class="item-one">
      <image class="one-image" src="../../../style/image/my/A34.jpg" alt="" />
      <span style="padding-left: 1.8rem">余额支付(¥9800.00)</span>
      <image class="two-image" src="../../../style/image/my/A37.jpg" alt="" />
    </view>
    <view class="item-one">
      <image class="three-image" src="../../../style/image/my/A35.jpg" alt="" />
      <span style="padding-left: 1.8rem">微信支付</span>
      <image class="two-image" src="../../../style/image/my/A37.jpg" alt="" />
    </view>
    <view class="item-one">
      <u-icon
        name="zhifubao"
        color="rgba(40, 75, 231, 0.911)"
        size="45"
      ></u-icon>
      <span style="padding-left: 0.56rem">支付宝支付</span>
      <image class="two-image" src="../../../style/image/my/A38.jpg" alt="" />
    </view>
    <view class="btn">
      <span>合计: </span>
      <span style="color: #fe4646">￥0 </span>
      <button class="button">提醒发货</button>
    </view>
  </view>
</template>

<script lang='ts' >
import { Component, Prop, Vue, Watch, Emit } from "vue-property-decorator";

@Component({
  //   @Component  是一个装修器   不可以在下面写语句
  name: "test",
})
export default class extends Vue {
  @Prop({
    type: String, // 父组件传递给子组件的数据类型
    required: false, // 是否必填
    default: " ", // 默认值， 如果传入的是 Object，则要 default: ()=>({}) 参数为函数
  })
  msg!: string;

  created() {}

  mounted() {
    //  console.log('父组件传递的参数:',this.$parent)   //暂时不考虑
    //  uni.navigateTo({
    // url: './selectBusin'
    // });
  }
}
</script>

<style  lang="scss"  scoped>
.definite {
  font-family: PingFang SC;
  background: #f3f5f7;
  height: 100%;
}
uni-page-body {
  height: 100%;
}
.top-bar {
  height: 2.75rem;
  background: #02af74;
  box-shadow: 0rem 0rem 0rem 0rem rgba(204, 204, 204, 0.35);
}
.top-content {
  font-size: 0.7rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  line-height: 2.75rem;
}
.top {
  position: relative;
  padding: 0.7rem 0.3rem;
  margin-bottom: 0.2rem;
  background: #ffffff;
}
.map {
  float: left;
  height: 3rem;
  width: 1.7rem;
}
.item {
  font-weight: 500;
  color: #666666;
  font-size: 0.7rem;
  font-family: PingFang SC;
  padding-bottom: 0.3rem;
}
.name {
  font-weight: 500;
}
.tele {
  float: right;
  padding-right: 3rem;
}
.address {
  width: 17rem;
  font-size: 0.7rem;
  font-family: PingFang SC;
  font-weight: 400;
  color: #666666;
  line-height: 0.81rem;
  font-weight: 500;
}
.item-content {
  padding: 0.4rem;
  height: 4.6rem;
  background: #f3f3f3;
  font-family: PingFang SC;
  margin-bottom: 0.03rem;
  border-bottom: 0.03rem #e5e5e5 solid;
}
.image {
  float: left;
}
.image image {
  width: 4.6rem;
  height: 4.6rem;
}
.description {
  float: left;
  font-size: 0.7rem;
  padding-left: 0.5rem;
  width: 13.63rem;
  height: 2rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: #333333;
  line-height: 0.98rem;
}
.type {
  float: left;
  width: 14rem;
  line-height: 1.5rem;
  padding-left: 0.5rem;
  font-size: 0.6rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: #999999;
}
.money {
  float: left;
  font-size: 0.75rem;
  padding-left: 0.5rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: #ff0000;
}
.num {
  float: right;
  font-size: 0.7rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: #000000;
}
.null {
  float: right;
  color: #999999;
  padding-right: 1rem;
}
.have {
  float: right;
  padding-right: 1rem;
}
.item-one {
  position: relative;
  padding: 0.7rem;
  font-size: 0.7rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: #333333;
  background: #ffffff;
  margin-bottom: 0.1rem;
}
.top-image {
  position: absolute;
  top: 1.6rem;
  right: 0.5rem;
  width: 0.5rem;
  height: 0.85rem;
  color: #666666;
}
.image-one {
  position: absolute;
  top: 0.8rem;
  right: 0.5rem;
  width: 0.5rem;
  height: 0.85rem;
  color: #666666;
}
.button {
  float: right;
  width: 29%;
  font-size: 0.8rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: #ffffff;
  line-height: 2.5rem;
  height: 2.5rem;
  background: #02af74;
  border-radius: 0;
  margin-left: 1rem;
}
.item-two {
  position: relative;
  height: 1rem;
  padding: 0.5rem;
  font-size: 0.7rem;
  font-family: PingFang SC;
  font-weight: 500;
  background: #ffffff;
  margin-bottom: 0.7rem;
}
.total {
  position: absolute;
  right: 0.6rem;
}
.one-image {
  position: absolute;
  top: 0.5rem;
  width: 1.5rem;
  height: 1.1rem;
}
.two-image {
  position: absolute;
  right: 0.5rem;
  bottom: 0.2rem;
  width: 2rem;
  height: 2rem;
}
.three-image {
  position: absolute;
  top: 0.5rem;
  width: 1.1rem;
  height: 1.1rem;
}
.btn {
  float: right;
  text-align: right;
  width: 100%;
  height: 2.5rem;
  line-height: 2.5rem;
  background: #ffffff;
  margin-top: 2.1rem;
}
</style>